package com.pda.gongpin.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.gongpin.R;
import com.pda.gongpin.bean.SkuListBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class FullTrayInOneAdapter extends BaseAdapter<SkuListBean> {
    public FullTrayInOneAdapter(int layoutResId, @Nullable List<SkuListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SkuListBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_spec,"规格："+item.getSpec());
        helper.setText(R.id.tv_articleId,"物品编码： "+item.getArticleId());
        helper.setText(R.id.tv_articleName,"物品名称："+item.getArticleName());
        helper.setText(R.id.tv_grade,"等级："+item.getGrade());
        helper.setText(R.id.tv_surfaceTreatment,"表色："+item.getSurfaceTreatment());
        helper.setText(R.id.tv_brand,"品牌："+item.getBrand());
        helper.setText(R.id.tv_packageSpecFull,"包格："+item.getPackageSpecFull());
        helper.setText(R.id.tv_standard,"标准："+item.getStandard());
        helper.setText(R.id.tv_title,item.getTitle());
        helper.setText(R.id.tv_materialCode,"我的料号："+item.getMaterialCode());

    }
}
